nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound

AI-powered interview preparation platform. Practice with curated questions, mock interviews, and personalized learning paths to crack your dream tech interview.

Quick Links

  • Technologies
  • Saved Questions
  • Pricing

Company

  • About Us
  • Contact Us

Legal

  • Privacy Policy
  • Terms of Use

© 2026 nextRound. All rights reserved.

1How are pseudo-classes different from pseudo-elements?Intermediate2What is a pseudo-class in CSS?Intermediate3Give some commonly used pseudo-classes.Intermediate4What’s the purpose of the :active pseudo-class?Beginner5What is the :focus pseudo-class used for?Beginner6What is the syntax of a pseudo-class in CSS?Intermediate7How does the :visited pseudo-class work for links?Intermediate8What does the :hover pseudo-class do?Beginner9What does the :checked pseudo-class do?Beginner10How does the :disabled pseudo-class behave?Intermediate11How would you use :has() to select a <div> that contains an image?Intermediate12How can you highlight a link only when it’s both focused and hovered?Intermediate13How can you style the first letter of only the first paragraph using pseudo-classes?Beginner14How can you style the parent when any child inside it is focused?Intermediate15How do you hide empty <p> tags using pseudo-classes?Beginner16How can you style alternate table rows without adding extra classes?Beginner17How do you style every third list item differently?Beginner18How can you highlight the current section in a menu using :target?Beginner19How can you style a form field differently when focused and valid?Beginner20How do you change a button’s color when hovered but not when disabled?Beginner21How can you style only the last element of a list using pseudo-classes?Beginner22What does the :lang() pseudo-class do?Beginner23What’s the difference between :nth-child() and :nth-last-child()?Beginner24How can you combine :is() or :where() with other selectors for cleaner code?Intermediate25How does :is() differ from :where() in terms of specificity?Intermediate26How does :has() pseudo-class work, and why is it powerful?Intermediate27Is :has() supported in all browsers?Intermediate28How can you use :not() effectively to exclude elements from styling?Intermediate29What is the specificity of pseudo-classes compared to normal selectors?Intermediate30Can pseudo-classes be chained together? Give an example.Beginner31How can you style a checkbox when it is checked or unchecked?Beginner32How can you style invalid form inputs without JavaScript?Beginner33What is the purpose of the :placeholder-shown pseudo-class?Beginner34What’s the difference between :focus and :focus-visible?Intermediate35How does the :focus-within pseudo-class work?Intermediate36How can you style an input field when it’s autofilled?Intermediate37What does :read-only and :read-write do?Beginner38What is the use of :in-range and :out-of-range?Beginner39What does the :valid and :invalid pseudo-class do?Beginner40How can you use :required and :optional pseudo-classes in forms?Beginner41How can you use :empty to detect empty elements?Beginner42How does the :root pseudo-class differ from the html selector?Beginner43What is the difference between :first-child and :first-of-type?Beginner44How do :nth-child() and :nth-of-type() differ?Beginner45What does the :target pseudo-class represent?Beginner46What is the difference between :link and :visited?Beginner47What does the :not() pseudo-class do?Beginner48How can you use multiple pseudo-classes together?Beginner49How can you style an element when it’s being hovered over along with its child?Beginner50How do you select every odd or even element using pseudo-classes?Beginner
All Topics
1
Basics
Selectors
Box model
Text formatters
Combinators
2
Positioning
Display
Overflow
Breakpoint
3
Pseudo classes
Pseudo elements
Flexbox
Grid
Transformation and Transition
4
Frameworks
Everything else
Sharethis topic

Share via WhatsApp, X, Facebook, LinkedIn or copy link. Open Graph preview enabled.